#!/bin/sh
# Copyright (C) 2024-2025 KoudaiPC Computer Technologies Co., Ltd.
# script name: huangdi-populate-root.sh
# author: david921518@qq.com

# 1. banner
if [ -f /root/firstboot/root/etc/banner ]; then
  cp -f /root/firstboot/root/etc/banner /etc/banner
fi

# 2. bind
if [ -e /root/firstboot/root/etc/bind ]; then
  cp -af /root/firstboot/root/etc/bind/* /etc/bind/
fi

# 3. board.d
if [ -e /root/firstboot/root/etc/board.d ]; then
  cp -af /root/firstboot/root/etc/board.d/* /etc/board.d/
fi

# 4. /usr/sbin
if [ -e /root/firstboot/root/usr/sbin ]; then
  cp -af /root/firstboot/root/usr/sbin/* /usr/sbin/
fi

# restart system
#poweroff

